﻿<controls:ChildWindow x:Class="VisitorsApp.Views.UploadPhotoWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="UploadPhotoWindow">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <StackPanel>
        <Button Content="Browse" Click="ButtonBrowse_Click"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding NewImage.ImageName}" Width="70"/>
                <TextBlock Text="IsPublic" />
                <CheckBox IsChecked="{Binding NewImage.IsPublic, Mode=TwoWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Description" />
                <TextBox Width="313" Height="100" Text="{Binding NewImage.Description, Mode=TwoWay}"/>
            </StackPanel>
            <TextBlock Text="Folder:"/>
            <ComboBox ItemsSource="{Binding Folders}" DisplayMemberPath="FolderName"
                      SelectedItem="{Binding CurrentFolder, Mode=TwoWay}"/>
            
        </StackPanel>
        
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>